package String案例;

import java.util.Scanner;

public class 手机号码屏蔽 {
    public static void main(String[] args) {
        Scanner sr=new Scanner(System.in);
        System.out.println("输入您的手机号");
        String phone=sr.next();
        System.out.println(phone.replace(phone.substring(3,7),"****"));
    }
}
